@import "../styles/var.less";

.message {
    .self-center();
    padding: 12px 20px;
    border-radius: 7px;
    background-color: #eeec;
    box-shadow: 2px 2px 4px #0006;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(40px);
    transition: 0.5s;
    z-index: 999;
    white-space: nowrap;
    &-info {// 编译后为 .message-info
        color: @info!important;
    }
    &-success {
        color: @success!important;
    }
    &-error {
        color: @danger!important;
    }
    &-warn {
        color: @warn!important;
    }
    i {
        font-size: 20px;
        margin-right: 8px;
        vertical-align: middle;
    }
    button {
        cursor: pointer;
        margin-top: 8px;
    }
}
